package com.design.chain.optimize;

import org.apache.commons.lang3.StringUtils;

public class ValidateHandler extends Handler {
    @Override
    public void doHandle(Member member) {
        if (StringUtils.isEmpty(member.getLoginName())||StringUtils.isEmpty(member.getLoginPass())) {
            System.out.println("用戶名或者密码为空");
            return;
        }
        System.out.println("用户名和密码校验成功，可以往下执行");
        chain.doHandle(member);

    }
}
